﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.IO;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_TaiSan : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvBoPhan")]
        private ADVList _AdvBoPhan;
        [AccessedThroughProperty("AdvBoPhanSuDung")]
        private ADVList _AdvBoPhanSuDung;
        [AccessedThroughProperty("AdvDiemDatTaiSan")]
        private ADVList _AdvDiemDatTaiSan;
        [AccessedThroughProperty("AdvNhaCungCap")]
        private ADVObjects _AdvNhaCungCap;
        [AccessedThroughProperty("AdvNhanVienSuDung")]
        private ADVObjects _AdvNhanVienSuDung;
        [AccessedThroughProperty("AdvSanPham")]
        private ADVList _AdvSanPham;
        [AccessedThroughProperty("AdvTKChiPhi")]
        private ADVAccount _AdvTKChiPhi;
        [AccessedThroughProperty("AdvTKKhauHao")]
        private ADVAccount _AdvTKKhauHao;
        [AccessedThroughProperty("AdvTKNguyenGia")]
        private ADVAccount _AdvTKNguyenGia;
        [AccessedThroughProperty("browseImageButton")]
        private Button _browseImageButton;
        [AccessedThroughProperty("browseImageOpenFileDialog")]
        private OpenFileDialog _browseImageOpenFileDialog;
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("CboDonViTinh")]
        private ComboBox _CboDonViTinh;
        [AccessedThroughProperty("CboHangSanXuat")]
        private ComboBox _CboHangSanXuat;
        [AccessedThroughProperty("CboLoaiDuLieu")]
        private ComboBox _CboLoaiDuLieu;
        [AccessedThroughProperty("CboLoaiTaiSan")]
        private ComboBox _CboLoaiTaiSan;
        [AccessedThroughProperty("CboLoaiTien")]
        private ComboBox _CboLoaiTien;
        [AccessedThroughProperty("CboLyDoTang")]
        private ComboBox _CboLyDoTang;
        [AccessedThroughProperty("CboNuocSanXuat")]
        private ComboBox _CboNuocSanXuat;
        [AccessedThroughProperty("CboTinhTrang")]
        private ComboBox _CboTinhTrang;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdChuyen")]
        private Button _CmdChuyen;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdGhiSo")]
        private ToolStripButton _CmdGhiSo;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdRemoveImage")]
        private Button _CmdRemoveImage;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("GroupBox3")]
        private GroupBox _GroupBox3;
        [AccessedThroughProperty("GroupBox4")]
        private GroupBox _GroupBox4;
        [AccessedThroughProperty("ImageList1")]
        private ImageList _ImageList1;
        [AccessedThroughProperty("ImgPicture")]
        private PictureBox _ImgPicture;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label12")]
        private Label _Label12;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label15")]
        private Label _Label15;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label17")]
        private Label _Label17;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label21")]
        private Label _Label21;
        [AccessedThroughProperty("Label22")]
        private Label _Label22;
        [AccessedThroughProperty("Label23")]
        private Label _Label23;
        [AccessedThroughProperty("Label24")]
        private Label _Label24;
        [AccessedThroughProperty("Label25")]
        private Label _Label25;
        [AccessedThroughProperty("Label26")]
        private Label _Label26;
        [AccessedThroughProperty("Label27")]
        private Label _Label27;
        [AccessedThroughProperty("Label28")]
        private Label _Label28;
        [AccessedThroughProperty("Label29")]
        private Label _Label29;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label30")]
        private Label _Label30;
        [AccessedThroughProperty("Label31")]
        private Label _Label31;
        [AccessedThroughProperty("Label32")]
        private Label _Label32;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("PNDungChung")]
        private Panel _PNDungChung;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripButton2")]
        private ToolStripButton _ToolStripButton2;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtBaoHanh")]
        private NumericUpDown _TxtBaoHanh;
        [AccessedThroughProperty("TxtDaKhauHao")]
        private C1NumericEdit _TxtDaKhauHao;
        [AccessedThroughProperty("TxtMa")]
        private TextBox _TxtMa;
        [AccessedThroughProperty("TxtMoTa")]
        private TextBox _TxtMoTa;
        [AccessedThroughProperty("TxtNamSanXuat")]
        private NumericUpDown _TxtNamSanXuat;
        [AccessedThroughProperty("TxtNgayMua")]
        private DateTimePicker _TxtNgayMua;
        [AccessedThroughProperty("TxtNguyenGia")]
        private C1NumericEdit _TxtNguyenGia;
        [AccessedThroughProperty("TxtNguyenGiaNT")]
        private C1NumericEdit _TxtNguyenGiaNT;
        [AccessedThroughProperty("TxtSoHieuTS")]
        private TextBox _TxtSoHieuTS;
        [AccessedThroughProperty("TxtTenAnh")]
        private TextBox _TxtTenAnh;
        [AccessedThroughProperty("TxtTenViet")]
        private TextBox _TxtTenViet;
        [AccessedThroughProperty("TxtThangBatDau")]
        private MaskedTextBox _TxtThangBatDau;
        [AccessedThroughProperty("TxtThoiGianSuDung")]
        private C1NumericEdit _TxtThoiGianSuDung;
        [AccessedThroughProperty("TxtTriGiaConLai")]
        private C1NumericEdit _TxtTriGiaConLai;
        [AccessedThroughProperty("TxtTriGiaKhauHao")]
        private C1NumericEdit _TxtTriGiaKhauHao;
        [AccessedThroughProperty("txtTyGia")]
        private C1NumericEdit _txtTyGia;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        public bool bLoaded;
        private object cFrmCall;
        private DataView cFrmData;
        private string cFrmFormat;
        public string cFrmKhoa;
        private string cFrmKhoaOld;
        public string cFrmKhoaPhuTung;
        public string cFrmKhoaTaiSan;
        private string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        private DataView objData;
        private clsDMThongTinTaiSanCoDinh objDMTTTSCD;
        private clsDMDoiTuong objDTTSCD;
        private clsSoDuDauKyTaiSan objSDDKTS;
        private clsTaiSanCoDinh objTSCD;

        public Frm_TaiSan()
        {
            base.Load += new EventHandler(this.Frm_TaiSanCoDinh_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.bLoaded = false;
            this.cFrmKhoaPhuTung = "";
            this.cFrmKhoaOld = "";
            this.cFrmKhoaTaiSan = "";
            this.cFrmKhoa = "";
            this.cFrmTask = "";
            this.objTSCD = new clsTaiSanCoDinh();
            this.objDTTSCD = new clsDMDoiTuong();
            this.objSDDKTS = new clsSoDuDauKyTaiSan();
            this.objDMTTTSCD = new clsDMThongTinTaiSanCoDinh();
            this.InitializeComponent();
        }

        private void AdvNhanVienSuDung_Load(object sender, EventArgs e)
        {
        }

        private void browseImageButton_Click(object sender, EventArgs e)
        {
            this.browseImageOpenFileDialog.Title = "Select an Image to Import";
            this.browseImageOpenFileDialog.Multiselect = false;
            this.browseImageOpenFileDialog.Filter = "JPEG Compressed Image(*.jpg)|*.jpg";
            this.browseImageOpenFileDialog.FilterIndex = 2;
            this.browseImageOpenFileDialog.FileName = "";
            if (this.browseImageOpenFileDialog.ShowDialog() == DialogResult.OK)
            {
                this.ImgPicture.Tag = this.browseImageOpenFileDialog.FileName;
                this.ImgPicture.Image = Image.FromFile(this.browseImageOpenFileDialog.FileName);
            }
        }

        private void CboLoaiTien_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                this.txtTyGia.Value = 0;
            }
            else
            {
                string strCode = this.CboLoaiTien.SelectedValue.ToString();
                clsDMLoaiTien tien = new clsDMLoaiTien();
                tien.LoadByCode(strCode);
                this.txtTyGia.Value = tien.TyGia;
                if (tien.SoLe > 0)
                {
                    this.cFrmFormat = modGeneral.H_FORMATNUMBER + "." + LVYModule.sRight("##########", tien.SoLe);
                }
                this.FormatNumber();
                if (tien.TienViet == 1)
                {
                    this.txtTyGia.Enabled = false;
                }
            }
        }

        public bool CheckIvalid()
        {
            if (this.CboLoaiTaiSan.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn loại t\x00e0i sản!", ""));
                this.CboLoaiTaiSan.Focus();
                return false;
            }
            if (this.TxtMa.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập m\x00e3!", ""));
                this.TxtMa.Focus();
                return false;
            }
            if (this.TxtSoHieuTS.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập số hiệu t\x00e0i sản!", ""));
                this.TxtSoHieuTS.Focus();
                return false;
            }
            if (this.objTSCD.TrungMa(this.TxtMa.Text.Trim(), this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("M\x00e3 n\x00e0y đ\x00e3 tồn tại, bạn phải nhập m\x00e3 kh\x00e1c!", ""));
                this.TxtMa.Focus();
                return false;
            }
            if ((this.TxtTenViet.Text.Trim() == "") & (this.TxtTenAnh.Text.Trim() == ""))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00ean!", ""));
                this.TxtTenViet.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboTinhTrang.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00ecnh trạng sử dụng của t\x00e0i sản!", ""));
                this.CboTinhTrang.Focus();
                return false;
            }
            if (this.AdvTKNguyenGia.Value.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00e0i khoản nguy\x00ean gi\x00e1!", ""));
                this.AdvTKNguyenGia.Focus();
                return false;
            }
            if (this.AdvTKKhauHao.Value.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00e0i khoản khấu hao!", ""));
                this.AdvTKKhauHao.Focus();
                return false;
            }
            if (this.AdvTKChiPhi.Value.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00e0i khoản chi ph\x00ed!", ""));
                this.AdvTKChiPhi.Focus();
                return false;
            }
            return true;
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            this.EmptyData();
            this.TxtNamSanXuat.Value = new decimal(DateAndTime.Year(DateAndTime.Today));
            this.cFrmTask = "I";
            this.cFrmKhoa = modGeneral.CreatKey("FA_TaiSanCoDinh", 15, "TS");
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.EnableControl = true;
        }

        private void CmdAddRow_Click(object sender, EventArgs e)
        {
            this.VSlist.AddItem("");
            this.VSlist.Select(this.VSlist.Rows.Count - 1, 2);
            this.VSlist.Focus();
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (this.objTSCD.DaSuDung(this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00f4ng tin n\x00e0y đ\x00e3 được sử dụng, bạn kh\x00f4ng thể x\x00f3a!", ""));
            }
            else if (this.objTSCD.CheckGhiSoTang(this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("T\x00e0i sản n\x00e0y đ\x00e3 ghi sổ tăng t\x00e0i sản, trước khi x\x00f3a bạn phải x\x00f3a chứng từ ghi tăng t\x00e0i sản!", ""));
            }
            else if ((LVYModule.ConfirmDelete("") && this.objSDDKTS.DelData(this.cFrmKhoa)) && !this.objTSCD.DelData(this.cFrmKhoa))
            {
            }
        }

        private void CmdDelRow_Click(object sender, EventArgs e)
        {
            if (((this.VSlist.Rows.Count != 1) && LVYModule.ConfirmDelete("")) && this.objDMTTTSCD.Delete(Conversions.ToString(this.VSlist[this.VSlist.Row, 0])))
            {
                this.VSlist.RemoveItem(this.VSlist.Row);
                this.VSList_RowColChange(RuntimeHelpers.GetObjectValue(sender), e);
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            this.EnableControl = true;
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdFind_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_SearchTaiSanCoDinh.Dispose();
            MyProject.Forms.Frm_SearchTaiSanCoDinh.ShowDialog();
        }

        private void CmdGhiSo_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_TangTaiSan.cFrmKhoaTaiSan = this.cFrmKhoa;
            MyProject.Forms.Frm_TangTaiSan.Show();
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
            if (!Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing), "", false))
            {
                this.Cursor = Cursors.WaitCursor;
                DataTable dataTable = this.objTSCD.ShowListByField("", " Khoa='" + this.cFrmKhoa + "'", "");
                Rpt_DMTaiSanCoDinh dinh = new Rpt_DMTaiSanCoDinh();
                try
                {
                    dinh.SetDataSource(dataTable);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        dinh.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                    }
                    else
                    {
                        dinh.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                    }
                    dinh.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                    dinh.SetParameterValue(2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE);
                    dinh.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                    dinh.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                    dinh.SetParameterValue(5, modGeneral.Tranlated("T\x00c0I SẢN CỐ ĐỊNH", ""));
                    dinh.SetParameterValue(6, modGeneral.Tranlated("M\x00e3 t\x00e0i sản cố định", ""));
                    dinh.SetParameterValue(7, modGeneral.Tranlated("T\x00ean t\x00e0i sản cố định", ""));
                    dinh.SetParameterValue(8, modGeneral.Tranlated("Năm sản xuất", ""));
                    dinh.SetParameterValue(9, modGeneral.Tranlated("Thời gian bảo h\x00e0nh", ""));
                    dinh.SetParameterValue(10, modGeneral.Tranlated("Ng\x00e0y mua", ""));
                    dinh.SetParameterValue(11, modGeneral.Tranlated("Loại tiền", ""));
                    dinh.SetParameterValue(12, modGeneral.Tranlated("Tỷ gi\x00e1", ""));
                    dinh.SetParameterValue(13, modGeneral.Tranlated("Nguy\x00ean gi\x00e1 NT", ""));
                    dinh.SetParameterValue(14, modGeneral.Tranlated("Nguy\x00ean gi\x00e1", ""));
                    dinh.SetParameterValue(15, modGeneral.Tranlated("Đ\x00e3 khấu hao", ""));
                    dinh.SetParameterValue(0x10, modGeneral.Tranlated("Gi\x00e1 trị c\x00f2n lại", ""));
                    dinh.SetParameterValue(0x11, modGeneral.Tranlated("Thời gian sử dụng", ""));
                    dinh.SetParameterValue(0x12, modGeneral.Tranlated("Trị gi\x00e1 khấu hao", ""));
                    dinh.SetParameterValue(0x13, modGeneral.Tranlated("Năm th\x00e1ng t\x00ednh khấu hao ", ""));
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = dinh;
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    this.Cursor = Cursors.Default;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        private void CmdRemoveImage_Click(object sender, EventArgs e)
        {
            this.ImgPicture.Image = null;
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid())
            {
                clsTaiSanCoDinh objTSCD = this.objTSCD;
                objTSCD.Khoa = this.cFrmKhoa;
                objTSCD.Ma = this.TxtMa.Text;
                objTSCD.KhoaLoaiTaiSan = Conversions.ToString(this.CboLoaiTaiSan.SelectedValue);
                objTSCD.SoHieuTaiSan = this.TxtSoHieuTS.Text;
                objTSCD.TenViet = this.TxtTenViet.Text;
                objTSCD.TenAnh = this.TxtTenAnh.Text;
                objTSCD.DienGiai = this.TxtMoTa.Text;
                objTSCD.KhoaNuocSanXuat = Conversions.ToString(this.CboNuocSanXuat.SelectedValue);
                objTSCD.KhoaHangSanXuat = Conversions.ToString(this.CboHangSanXuat.SelectedValue);
                objTSCD.NamSanXuat = Convert.ToDouble(this.TxtNamSanXuat.Value);
                objTSCD.ThoiGianBaoHanh = Convert.ToInt32(this.TxtBaoHanh.Value);
                objTSCD.NgayMua = LVYModule.Date2Char(this.TxtNgayMua.Text);
                objTSCD.KhoaNhaCungCap = this.AdvNhaCungCap.Value;
                objTSCD.KhoaDiemDat = this.AdvDiemDatTaiSan.Value;
                objTSCD.KhoaBoPhanSuDung = this.AdvBoPhanSuDung.Value;
                objTSCD.KhoaNhanVienSuDung = this.AdvNhanVienSuDung.Value;
                objTSCD.TinhTrang = Conversions.ToString(this.CboTinhTrang.SelectedValue);
                objTSCD.LyDoTang = Conversions.ToString(this.CboLyDoTang.SelectedValue);
                objTSCD.LoaiTien = Conversions.ToString(this.CboLoaiTien.SelectedValue);
                objTSCD.TyGia = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing));
                objTSCD.NguyenGiaNT = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtNguyenGiaNT.Value), 0, modGeneral.TypeOfValue.Nothing));
                objTSCD.NguyenGia = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtNguyenGia.Value), 0, modGeneral.TypeOfValue.Nothing));
                objTSCD.DaKhauHaoBanDau = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtDaKhauHao.Value), 0, modGeneral.TypeOfValue.Nothing));
                if (objTSCD.DaKhauHao == 0.0)
                {
                    objTSCD.DaKhauHao = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtDaKhauHao.Value), 0, modGeneral.TypeOfValue.Nothing));
                }
                objTSCD.TriGiaKhauHao = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTriGiaKhauHao.Value), 0, modGeneral.TypeOfValue.Nothing));
                objTSCD.GiaTriConLaiBanDau = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTriGiaConLai.Value), 0, modGeneral.TypeOfValue.Nothing));
                if (objTSCD.GiaTriConLai == 0.0)
                {
                    objTSCD.GiaTriConLai = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTriGiaConLai.Value), 0, modGeneral.TypeOfValue.Nothing));
                }
                objTSCD.ThoiGianSuDung = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThoiGianSuDung.Value), 0, modGeneral.TypeOfValue.Nothing));
                objTSCD.NamThangTinhKhauHao = LVYModule.sRight(this.TxtThangBatDau.Text, 4) + LVYModule.sLeft(this.TxtThangBatDau.Text, 2);
                objTSCD.KhoaTKNguyenGia = this.AdvTKNguyenGia.Value;
                objTSCD.KhoaTKKhauHao = this.AdvTKKhauHao.Value;
                objTSCD.KhoaTKChiPhi = this.AdvTKChiPhi.Value;
                objTSCD.KhoaBoPhan = this.AdvBoPhan.Value;
                objTSCD.KhoaSanPham = this.AdvSanPham.Value;
                objTSCD.KhoaDonViTinh = Conversions.ToString(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboDonViTinh.SelectedValue), "", modGeneral.TypeOfValue.String));
                objTSCD.KhoaDonVi = modGeneral.H_CLIENT;
                objTSCD.DuLieu = Conversions.ToString(this.CboLoaiDuLieu.SelectedValue);
                MemoryStream stream = new MemoryStream();
                if (this.ImgPicture.Image != null)
                {
                    this.ImgPicture.Image.Save(stream, this.ImgPicture.Image.RawFormat);
                    byte[] buffer = stream.GetBuffer();
                    this.objTSCD.Img = buffer;
                }
                else
                {
                    this.objTSCD.Img = null;
                }
                if (objTSCD.Save(this.cFrmTask))
                {
                    objTSCD = null;
                    this.EnableControl = false;
                }
            }
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoaOld, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.cFrmKhoa = this.cFrmKhoaOld;
                this.ShowData(this.cFrmKhoa);
            }
            else
            {
                this.EmptyData();
            }
            this.EnableControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void EmptyData()
        {
            this.cFrmTask = "I";
            this.ImgPicture.Image = null;
            this.CboLoaiTaiSan.SelectedValue = "";
            this.TxtSoHieuTS.Text = "";
            this.CboNuocSanXuat.SelectedValue = "";
            this.CboHangSanXuat.SelectedValue = "";
            this.AdvNhaCungCap.Value = "";
            this.AdvDiemDatTaiSan.Value = "";
            this.AdvNhanVienSuDung.Value = "";
            this.AdvBoPhanSuDung.Value = "";
            this.CboTinhTrang.SelectedValue = "";
            this.CboDonViTinh.SelectedValue = "";
            this.CboLoaiTien.SelectedValue = "";
            this.CboLyDoTang.SelectedValue = "";
            this.txtTyGia.Value = 0;
            this.TxtNguyenGiaNT.Value = 0;
            this.TxtNguyenGia.Value = 0;
            this.TxtDaKhauHao.Value = 0;
            this.TxtTriGiaConLai.Value = 0;
            this.TxtThoiGianSuDung.Value = 0;
            this.TxtTriGiaKhauHao.Value = 0;
            this.TxtNgayMua.Text = Conversions.ToString(DateAndTime.Today);
            this.TxtMa.Text = "";
            this.TxtTenViet.Text = "";
            this.TxtTenAnh.Text = "";
            this.TxtMoTa.Text = "";
            this.CboDonViTinh.SelectedValue = "";
            this.AdvTKNguyenGia.Value = "";
            this.AdvTKKhauHao.Value = "";
            this.AdvTKChiPhi.Value = "";
            this.AdvBoPhan.Value = "";
            this.AdvSanPham.Value = "";
            this.CboLoaiTaiSan.Focus();
            this.VSlist.Select(0, 1);
            this.VSlist.Rows.Count = 1;
            this.TxtThangBatDau.Text = LVYModule.sRight("00" + DateAndTime.Month(DateAndTime.Today).ToString(), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
            this.objTSCD.SetBlank();
        }

        public void FormatNumber()
        {
            LVYModule.advFormatNumber(this.txtTyGia, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtNguyenGiaNT, this.cFrmFormat);
            LVYModule.advFormatNumber(this.TxtNguyenGia, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTriGiaKhauHao, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtTriGiaConLai, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtThoiGianSuDung, modGeneral.H_FORMATNUMBER);
            LVYModule.advFormatNumber(this.TxtDaKhauHao, this.cFrmFormat);
        }

        private void Frm_TaiSanCoDinh_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.EnableControl = false;
                BuildComboModule.BuildCombo(this.CboLoaiTaiSan, modGeneral.ListDanhMuc.LoaiTaiSan, false, "", "");
                BuildComboModule.BuildCombo(this.CboNuocSanXuat, modGeneral.ListDanhMuc.QuocGia, false, "", "");
                BuildComboModule.BuildCombo(this.CboHangSanXuat, modGeneral.ListDanhMuc.HangSanXuat, false, "", "");
                BuildComboModule.BuildCombo(this.CboDonViTinh, modGeneral.ListDanhMuc.DonViTinh, false, "", "");
                BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
                BuildComboModule.BuildCombo(this.CboLyDoTang, modGeneral.ListDanhMuc.LyDoTangTaiSan, false, " LoaiPhatSinh = 1 ", "");
                this.CboTinhTrang.DataSource = modGeneral.H_DUNGCHUNG.ShowList("0000000006");
                this.CboTinhTrang.ValueMember = "Ma";
                this.CboTinhTrang.DisplayMember = "Ten";
                this.cFrmFormat = modGeneral.H_FORMATNUMBER;
                this.FormatNumber();
                this.TxtThangBatDau.Text = LVYModule.sRight("00" + DateAndTime.Month(DateAndTime.Today).ToString(), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
                {
                    this.ShowData(this.cFrmKhoa);
                }
            }
        }

        private void GroupBox2_Enter(object sender, EventArgs e)
        {
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_TaiSan));
            this.Label31 = new Label();
            this.CboTinhTrang = new ComboBox();
            this.Label15 = new Label();
            this.TxtNgayMua = new DateTimePicker();
            this.Label14 = new Label();
            this.CboHangSanXuat = new ComboBox();
            this.Label13 = new Label();
            this.Label12 = new Label();
            this.Label16 = new Label();
            this.CboLyDoTang = new ComboBox();
            this.Label32 = new Label();
            this.Label18 = new Label();
            this.Label19 = new Label();
            this.txtTyGia = new C1NumericEdit();
            this.TxtNguyenGiaNT = new C1NumericEdit();
            this.CboDonViTinh = new ComboBox();
            this.GroupBox1 = new GroupBox();
            this.AdvBoPhanSuDung = new ADVList();
            this.AdvDiemDatTaiSan = new ADVList();
            this.AdvNhanVienSuDung = new ADVObjects();
            this.AdvNhaCungCap = new ADVObjects();
            this.Label9 = new Label();
            this.Label8 = new Label();
            this.TxtBaoHanh = new NumericUpDown();
            this.Label7 = new Label();
            this.TxtNamSanXuat = new NumericUpDown();
            this.CboNuocSanXuat = new ComboBox();
            this.Label6 = new Label();
            this.Label5 = new Label();
            this.TxtMoTa = new TextBox();
            this.Label4 = new Label();
            this.TxtTenAnh = new TextBox();
            this.Label3 = new Label();
            this.TxtSoHieuTS = new TextBox();
            this.CboLoaiTaiSan = new ComboBox();
            this.Label11 = new Label();
            this.Label2 = new Label();
            this.TxtTenViet = new TextBox();
            this.Label1 = new Label();
            this.TxtMa = new TextBox();
            this.Label10 = new Label();
            this.Label17 = new Label();
            this.GroupBox4 = new GroupBox();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.GroupBox3 = new GroupBox();
            this.AdvTKChiPhi = new ADVAccount();
            this.AdvTKKhauHao = new ADVAccount();
            this.AdvTKNguyenGia = new ADVAccount();
            this.AdvSanPham = new ADVList();
            this.Label30 = new Label();
            this.AdvBoPhan = new ADVList();
            this.Label29 = new Label();
            this.Label28 = new Label();
            this.Label27 = new Label();
            this.Label24 = new Label();
            this.GroupBox2 = new GroupBox();
            this.Label26 = new Label();
            this.TxtThangBatDau = new MaskedTextBox();
            this.TxtTriGiaKhauHao = new C1NumericEdit();
            this.Label25 = new Label();
            this.TxtThoiGianSuDung = new C1NumericEdit();
            this.Label23 = new Label();
            this.TxtTriGiaConLai = new C1NumericEdit();
            this.Label22 = new Label();
            this.TxtDaKhauHao = new C1NumericEdit();
            this.Label21 = new Label();
            this.TxtNguyenGia = new C1NumericEdit();
            this.Label20 = new Label();
            this.CboLoaiTien = new ComboBox();
            this.ImageList1 = new ImageList(this.components);
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdGhiSo = new ToolStripButton();
            this.ToolStripButton2 = new ToolStripButton();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.PNDungChung = new Panel();
            this.CmdChuyen = new Button();
            this.CboLoaiDuLieu = new ComboBox();
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.CmdRemoveImage = new Button();
            this.browseImageButton = new Button();
            this.ImgPicture = new PictureBox();
            this.browseImageOpenFileDialog = new OpenFileDialog();
            ((ISupportInitialize) this.txtTyGia).BeginInit();
            ((ISupportInitialize) this.TxtNguyenGiaNT).BeginInit();
            this.GroupBox1.SuspendLayout();
            this.TxtBaoHanh.BeginInit();
            this.TxtNamSanXuat.BeginInit();
            this.GroupBox4.SuspendLayout();
            this.VSlist.BeginInit();
            this.GroupBox3.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            ((ISupportInitialize) this.TxtTriGiaKhauHao).BeginInit();
            ((ISupportInitialize) this.TxtThoiGianSuDung).BeginInit();
            ((ISupportInitialize) this.TxtTriGiaConLai).BeginInit();
            ((ISupportInitialize) this.TxtDaKhauHao).BeginInit();
            ((ISupportInitialize) this.TxtNguyenGia).BeginInit();
            this.ToolStrip1.SuspendLayout();
            this.PNDungChung.SuspendLayout();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            ((ISupportInitialize) this.ImgPicture).BeginInit();
            this.SuspendLayout();
            this.Label31.AutoEllipsis = true;
            this.Label31.AutoSize = true;
            Point point = new Point(0x197, 0xa7);
            this.Label31.Location = point;
            this.Label31.Name = "Label31";
            this.Label31.RightToLeft = RightToLeft.No;
            Size size = new Size(60, 13);
            this.Label31.Size = size;
            this.Label31.TabIndex = 0x22;
            this.Label31.Text = "Đơn vị t\x00ednh";
            this.Label31.TextAlign = ContentAlignment.TopRight;
            this.CboTinhTrang.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboTinhTrang.FormattingEnabled = true;
            point = new Point(0x1f6, 0x8a);
            this.CboTinhTrang.Location = point;
            this.CboTinhTrang.Name = "CboTinhTrang";
            size = new Size(0x10c, 0x15);
            this.CboTinhTrang.Size = size;
            this.CboTinhTrang.TabIndex = 0x21;
            this.Label15.AutoEllipsis = true;
            this.Label15.AutoSize = true;
            point = new Point(0x197, 0x8d);
            this.Label15.Location = point;
            this.Label15.Name = "Label15";
            this.Label15.RightToLeft = RightToLeft.No;
            size = new Size(0x37, 13);
            this.Label15.Size = size;
            this.Label15.TabIndex = 0x20;
            this.Label15.Text = "T\x00ecnh trạng";
            this.Label15.TextAlign = ContentAlignment.TopRight;
            this.TxtNgayMua.Format = DateTimePickerFormat.Custom;
            point = new Point(0x135, 0x8a);
            this.TxtNgayMua.Location = point;
            this.TxtNgayMua.Name = "TxtNgayMua";
            size = new Size(0x53, 20);
            this.TxtNgayMua.Size = size;
            this.TxtNgayMua.TabIndex = 0x11;
            this.Label14.AutoSize = true;
            point = new Point(0xfc, 0x8e);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(0x37, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 0x10;
            this.Label14.Text = "Ng\x00e0y mua";
            this.Label14.TextAlign = ContentAlignment.TopRight;
            this.CboHangSanXuat.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboHangSanXuat.FormattingEnabled = true;
            point = new Point(0x1f6, 0x10);
            this.CboHangSanXuat.Location = point;
            this.CboHangSanXuat.Name = "CboHangSanXuat";
            size = new Size(0x10b, 0x15);
            this.CboHangSanXuat.Size = size;
            this.CboHangSanXuat.TabIndex = 0x17;
            this.Label13.AutoEllipsis = true;
            this.Label13.AutoSize = true;
            point = new Point(0x197, 0x75);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            this.Label13.RightToLeft = RightToLeft.No;
            size = new Size(0x58, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 30;
            this.Label13.Text = "Bộ phận sử dụng";
            this.Label13.TextAlign = ContentAlignment.TopRight;
            this.Label12.AutoEllipsis = true;
            this.Label12.AutoSize = true;
            point = new Point(0x197, 0x45);
            this.Label12.Location = point;
            this.Label12.Name = "Label12";
            this.Label12.RightToLeft = RightToLeft.No;
            size = new Size(0x54, 13);
            this.Label12.Size = size;
            this.Label12.TabIndex = 0x1a;
            this.Label12.Text = "Điểm đặt t\x00e0i sản";
            this.Label12.TextAlign = ContentAlignment.TopRight;
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            point = new Point(0x197, 0x2d);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x4b, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 0x18;
            this.Label16.Text = "Nh\x00e0 cung cấp";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.CboLyDoTang.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLyDoTang.FormattingEnabled = true;
            point = new Point(0x6c, 0x72);
            this.CboLyDoTang.Location = point;
            this.CboLyDoTang.Name = "CboLyDoTang";
            size = new Size(0x11c, 0x15);
            this.CboLyDoTang.Size = size;
            this.CboLyDoTang.TabIndex = 11;
            this.Label32.AutoSize = true;
            point = new Point(5, 0x75);
            this.Label32.Location = point;
            this.Label32.Name = "Label32";
            size = new Size(0x39, 13);
            this.Label32.Size = size;
            this.Label32.TabIndex = 10;
            this.Label32.Text = "L\x00fd do tăng";
            this.Label18.AutoSize = true;
            point = new Point(4, 0x16);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x2f, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0;
            this.Label18.Text = "Loại tiền";
            this.Label18.TextAlign = ContentAlignment.TopRight;
            this.Label19.AutoSize = true;
            point = new Point(0x113, 0x1a);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(0x24, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 2;
            this.Label19.Text = "Tỷ gi\x00e1";
            this.Label19.TextAlign = ContentAlignment.TopRight;
            this.txtTyGia.BorderStyle = BorderStyle.FixedSingle;
            this.txtTyGia.DataType = typeof(double);
            this.txtTyGia.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x173, 0x17);
            this.txtTyGia.Location = point;
            this.txtTyGia.Name = "txtTyGia";
            Padding padding = new Padding(1);
            this.txtTyGia.Padding = padding;
            size = new Size(0x6f, 20);
            this.txtTyGia.Size = size;
            this.txtTyGia.TabIndex = 3;
            this.txtTyGia.Tag = null;
            this.txtTyGia.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.txtTyGia.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.txtTyGia.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtNguyenGiaNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNguyenGiaNT.DataType = typeof(double);
            this.TxtNguyenGiaNT.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x7b, 0x2b);
            this.TxtNguyenGiaNT.Location = point;
            this.TxtNguyenGiaNT.Name = "TxtNguyenGiaNT";
            padding = new Padding(1);
            this.TxtNguyenGiaNT.Padding = padding;
            size = new Size(0x7f, 20);
            this.TxtNguyenGiaNT.Size = size;
            this.TxtNguyenGiaNT.TabIndex = 5;
            this.TxtNguyenGiaNT.Tag = null;
            this.TxtNguyenGiaNT.TextAlign = HorizontalAlignment.Right;
            this.TxtNguyenGiaNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtNguyenGiaNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtNguyenGiaNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.CboDonViTinh.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboDonViTinh.FormattingEnabled = true;
            point = new Point(0x1f6, 0xa3);
            this.CboDonViTinh.Location = point;
            this.CboDonViTinh.Name = "CboDonViTinh";
            size = new Size(0x10c, 0x15);
            this.CboDonViTinh.Size = size;
            this.CboDonViTinh.TabIndex = 0x23;
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CboLyDoTang);
            this.GroupBox1.Controls.Add(this.Label32);
            this.GroupBox1.Controls.Add(this.AdvBoPhanSuDung);
            this.GroupBox1.Controls.Add(this.AdvDiemDatTaiSan);
            this.GroupBox1.Controls.Add(this.CboDonViTinh);
            this.GroupBox1.Controls.Add(this.Label31);
            this.GroupBox1.Controls.Add(this.CboTinhTrang);
            this.GroupBox1.Controls.Add(this.Label15);
            this.GroupBox1.Controls.Add(this.TxtNgayMua);
            this.GroupBox1.Controls.Add(this.Label14);
            this.GroupBox1.Controls.Add(this.CboHangSanXuat);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.Label12);
            this.GroupBox1.Controls.Add(this.AdvNhanVienSuDung);
            this.GroupBox1.Controls.Add(this.Label16);
            this.GroupBox1.Controls.Add(this.AdvNhaCungCap);
            this.GroupBox1.Controls.Add(this.Label9);
            this.GroupBox1.Controls.Add(this.Label8);
            this.GroupBox1.Controls.Add(this.TxtBaoHanh);
            this.GroupBox1.Controls.Add(this.Label7);
            this.GroupBox1.Controls.Add(this.TxtNamSanXuat);
            this.GroupBox1.Controls.Add(this.CboNuocSanXuat);
            this.GroupBox1.Controls.Add(this.Label6);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.TxtMoTa);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.TxtTenAnh);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.TxtSoHieuTS);
            this.GroupBox1.Controls.Add(this.CboLoaiTaiSan);
            this.GroupBox1.Controls.Add(this.Label11);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.TxtTenViet);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.TxtMa);
            this.GroupBox1.Controls.Add(this.Label10);
            point = new Point(3, 3);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x30e, 0xd4);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Th\x00f4ng tin chung";
            this.AdvBoPhanSuDung.LoaiDanhMuc = ADVList.ListDanhMuc.BoPhan;
            point = new Point(0x1f6, 0x72);
            this.AdvBoPhanSuDung.Location = point;
            this.AdvBoPhanSuDung.Name = "AdvBoPhanSuDung";
            this.AdvBoPhanSuDung.ReadOnly = false;
            size = new Size(0x10c, 20);
            this.AdvBoPhanSuDung.Size = size;
            this.AdvBoPhanSuDung.TabIndex = 0x1f;
            this.AdvBoPhanSuDung.UpperText = true;
            this.AdvBoPhanSuDung.Value = "";
            this.AdvBoPhanSuDung.WidthCode = 80;
            this.AdvDiemDatTaiSan.LoaiDanhMuc = ADVList.ListDanhMuc.DiemDatTaiSan;
            point = new Point(0x1f6, 0x42);
            this.AdvDiemDatTaiSan.Location = point;
            this.AdvDiemDatTaiSan.Name = "AdvDiemDatTaiSan";
            this.AdvDiemDatTaiSan.ReadOnly = false;
            size = new Size(0x10c, 20);
            this.AdvDiemDatTaiSan.Size = size;
            this.AdvDiemDatTaiSan.TabIndex = 0x1b;
            this.AdvDiemDatTaiSan.UpperText = true;
            this.AdvDiemDatTaiSan.Value = "";
            this.AdvDiemDatTaiSan.WidthCode = 80;
            this.AdvNhanVienSuDung.Conditions = "";
            this.AdvNhanVienSuDung.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(0x1f6, 90);
            this.AdvNhanVienSuDung.Location = point;
            this.AdvNhanVienSuDung.Name = "AdvNhanVienSuDung";
            this.AdvNhanVienSuDung.ReadOnly = false;
            size = new Size(0x10c, 20);
            this.AdvNhanVienSuDung.Size = size;
            this.AdvNhanVienSuDung.TabIndex = 0x1d;
            this.AdvNhanVienSuDung.UpperText = true;
            this.AdvNhanVienSuDung.Value = "";
            this.AdvNhanVienSuDung.WidthCode = 80;
            this.AdvNhaCungCap.Conditions = "";
            this.AdvNhaCungCap.LoaiDoiTuong = modGeneral.TypeObjects.NhaCungCap;
            point = new Point(0x1f6, 0x2a);
            this.AdvNhaCungCap.Location = point;
            this.AdvNhaCungCap.Name = "AdvNhaCungCap";
            this.AdvNhaCungCap.ReadOnly = false;
            size = new Size(0x10b, 20);
            this.AdvNhaCungCap.Size = size;
            this.AdvNhaCungCap.TabIndex = 0x19;
            this.AdvNhaCungCap.UpperText = true;
            this.AdvNhaCungCap.Value = "";
            this.AdvNhaCungCap.WidthCode = 80;
            this.Label9.AutoSize = true;
            point = new Point(0x197, 0x13);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            size = new Size(0x4c, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x16;
            this.Label9.Text = "H\x00e3ng sản xuất";
            this.Label9.TextAlign = ContentAlignment.TopRight;
            this.Label8.AutoSize = true;
            point = new Point(0x9f, 0x8e);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x35, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 14;
            this.Label8.Text = "Bảo h\x00e0nh";
            this.Label8.TextAlign = ContentAlignment.TopRight;
            point = new Point(0xd4, 0x8b);
            this.TxtBaoHanh.Location = point;
            this.TxtBaoHanh.Name = "TxtBaoHanh";
            size = new Size(0x26, 20);
            this.TxtBaoHanh.Size = size;
            this.TxtBaoHanh.TabIndex = 15;
            this.Label7.AutoSize = true;
            point = new Point(5, 0x8d);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x48, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 12;
            this.Label7.Text = "Năm sản xuất";
            this.Label7.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x6c, 0x8b);
            this.TxtNamSanXuat.Location = point;
            decimal num = new decimal(new int[] { 0x9c4, 0, 0, 0 });
            this.TxtNamSanXuat.Maximum = num;
            num = new decimal(new int[] { 0x76c, 0, 0, 0 });
            this.TxtNamSanXuat.Minimum = num;
            this.TxtNamSanXuat.Name = "TxtNamSanXuat";
            size = new Size(0x2e, 20);
            this.TxtNamSanXuat.Size = size;
            this.TxtNamSanXuat.TabIndex = 13;
            num = new decimal(new int[] { 0x76c, 0, 0, 0 });
            this.TxtNamSanXuat.Value = num;
            this.CboNuocSanXuat.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboNuocSanXuat.FormattingEnabled = true;
            point = new Point(0x6c, 0xa3);
            this.CboNuocSanXuat.Location = point;
            this.CboNuocSanXuat.Name = "CboNuocSanXuat";
            size = new Size(0x11c, 0x15);
            this.CboNuocSanXuat.Size = size;
            this.CboNuocSanXuat.TabIndex = 0x13;
            this.Label6.AutoSize = true;
            point = new Point(5, 0xa6);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x4c, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x12;
            this.Label6.Text = "Nước sản xuất";
            this.Label6.TextAlign = ContentAlignment.TopRight;
            this.Label5.AutoSize = true;
            point = new Point(5, 190);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x22, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 20;
            this.Label5.Text = "M\x00f4 tả";
            point = new Point(0x6c, 0xbc);
            this.TxtMoTa.Location = point;
            this.TxtMoTa.Name = "TxtMoTa";
            size = new Size(0x295, 20);
            this.TxtMoTa.Size = size;
            this.TxtMoTa.TabIndex = 0x15;
            this.Label4.AutoSize = true;
            point = new Point(5, 0x5d);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x54, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 8;
            this.Label4.Text = "T\x00ean (Tiếng Anh)";
            point = new Point(0x6c, 90);
            this.TxtTenAnh.Location = point;
            this.TxtTenAnh.Name = "TxtTenAnh";
            size = new Size(0x11c, 20);
            this.TxtTenAnh.Size = size;
            this.TxtTenAnh.TabIndex = 9;
            this.Label3.AutoSize = true;
            point = new Point(0xd6, 0x2e);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x2b, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 4;
            this.Label3.Text = "Số hiệu";
            point = new Point(0x119, 0x2a);
            this.TxtSoHieuTS.Location = point;
            this.TxtSoHieuTS.Name = "TxtSoHieuTS";
            size = new Size(0x6f, 20);
            this.TxtSoHieuTS.Size = size;
            this.TxtSoHieuTS.TabIndex = 5;
            this.CboLoaiTaiSan.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiTaiSan.FormattingEnabled = true;
            point = new Point(0x6c, 0x11);
            this.CboLoaiTaiSan.Location = point;
            this.CboLoaiTaiSan.Name = "CboLoaiTaiSan";
            size = new Size(0x11c, 0x15);
            this.CboLoaiTaiSan.Size = size;
            this.CboLoaiTaiSan.TabIndex = 1;
            this.Label11.AutoSize = true;
            point = new Point(5, 0x15);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x3d, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0;
            this.Label11.Text = "Loại t\x00e0i sản";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.Label2.AutoSize = true;
            point = new Point(5, 0x44);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x53, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 6;
            this.Label2.Text = "T\x00ean (Tiếng Việt)";
            point = new Point(0x6c, 0x42);
            this.TxtTenViet.Location = point;
            this.TxtTenViet.Name = "TxtTenViet";
            size = new Size(0x11c, 20);
            this.TxtTenViet.Size = size;
            this.TxtTenViet.TabIndex = 7;
            this.Label1.AutoSize = true;
            point = new Point(5, 0x2e);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x38, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 2;
            this.Label1.Text = "M\x00e3 t\x00e0i sản";
            point = new Point(0x6c, 0x2a);
            this.TxtMa.Location = point;
            this.TxtMa.Name = "TxtMa";
            size = new Size(0x63, 20);
            this.TxtMa.Size = size;
            this.TxtMa.TabIndex = 3;
            this.Label10.AutoEllipsis = true;
            this.Label10.AutoSize = true;
            point = new Point(0x197, 0x5c);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            this.Label10.RightToLeft = RightToLeft.No;
            size = new Size(0x61, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 0x1c;
            this.Label10.Text = "Nh\x00e2n vi\x00ean sử dụng";
            this.Label10.TextAlign = ContentAlignment.TopRight;
            this.Label17.AutoSize = true;
            point = new Point(4, 0x2f);
            this.Label17.Location = point;
            this.Label17.Name = "Label17";
            size = new Size(0x3d, 13);
            this.Label17.Size = size;
            this.Label17.TabIndex = 4;
            this.Label17.Text = "Nguy\x00ean gi\x00e1";
            this.GroupBox4.BackColor = Color.Transparent;
            this.GroupBox4.Controls.Add(this.CmdDelRow);
            this.GroupBox4.Controls.Add(this.CmdAddRow);
            this.GroupBox4.Controls.Add(this.VSlist);
            point = new Point(3, 370);
            this.GroupBox4.Location = point;
            this.GroupBox4.Name = "GroupBox4";
            size = new Size(950, 0x91);
            this.GroupBox4.Size = size;
            this.GroupBox4.TabIndex = 3;
            this.GroupBox4.TabStop = false;
            this.GroupBox4.Text = "Phụ t\x00f9ng k\x00e8m theo";
            this.CmdDelRow.Image = (Image) manager.GetObject("CmdDelRow.Image");
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x63, 0x75);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(90, 0x18);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 2;
            this.CmdDelRow.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdDelRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = (Image) manager.GetObject("CmdAddRow.Image");
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(4, 0x75);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x5d, 0x18);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 1;
            this.CmdAddRow.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Top;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(3, 0x10);
            this.VSlist.Location = point;
            padding = new Padding(0);
            this.VSlist.Margin = padding;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            size = new Size(0x3b0, 0x63);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.GroupBox3.BackColor = Color.Transparent;
            this.GroupBox3.Controls.Add(this.AdvTKChiPhi);
            this.GroupBox3.Controls.Add(this.AdvTKKhauHao);
            this.GroupBox3.Controls.Add(this.AdvTKNguyenGia);
            this.GroupBox3.Controls.Add(this.AdvSanPham);
            this.GroupBox3.Controls.Add(this.Label30);
            this.GroupBox3.Controls.Add(this.AdvBoPhan);
            this.GroupBox3.Controls.Add(this.Label29);
            this.GroupBox3.Controls.Add(this.Label28);
            this.GroupBox3.Controls.Add(this.Label27);
            this.GroupBox3.Controls.Add(this.Label24);
            point = new Point(0x20e, 0xde);
            this.GroupBox3.Location = point;
            this.GroupBox3.Name = "GroupBox3";
            size = new Size(0x1ab, 0x8e);
            this.GroupBox3.Size = size;
            this.GroupBox3.TabIndex = 2;
            this.GroupBox3.TabStop = false;
            this.GroupBox3.Text = "Ph\x00e2n bổ khấu hao";
            this.AdvTKChiPhi.Conditions = "";
            this.AdvTKChiPhi.DefaultValue = "";
            this.AdvTKChiPhi.FieldNameFilter = "Left(SoTaiKhoan,4)";
            this.AdvTKChiPhi.KeyFilter = "6234|6274|6414|6424";
            point = new Point(0x63, 0x43);
            this.AdvTKChiPhi.Location = point;
            padding = new Padding(0);
            this.AdvTKChiPhi.Margin = padding;
            this.AdvTKChiPhi.Name = "AdvTKChiPhi";
            this.AdvTKChiPhi.OnlyDigit = false;
            this.AdvTKChiPhi.ReadOnly = false;
            size = new Size(0x137, 20);
            this.AdvTKChiPhi.Size = size;
            this.AdvTKChiPhi.TabIndex = 5;
            this.AdvTKChiPhi.UpperText = true;
            this.AdvTKChiPhi.Value = "";
            this.AdvTKChiPhi.WithCode = 80;
            this.AdvTKKhauHao.Conditions = "";
            this.AdvTKKhauHao.DefaultValue = "";
            this.AdvTKKhauHao.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTKKhauHao.KeyFilter = "214";
            point = new Point(0x63, 0x2b);
            this.AdvTKKhauHao.Location = point;
            padding = new Padding(0);
            this.AdvTKKhauHao.Margin = padding;
            this.AdvTKKhauHao.Name = "AdvTKKhauHao";
            this.AdvTKKhauHao.OnlyDigit = false;
            this.AdvTKKhauHao.ReadOnly = false;
            size = new Size(0x137, 20);
            this.AdvTKKhauHao.Size = size;
            this.AdvTKKhauHao.TabIndex = 3;
            this.AdvTKKhauHao.UpperText = true;
            this.AdvTKKhauHao.Value = "";
            this.AdvTKKhauHao.WithCode = 80;
            this.AdvTKNguyenGia.Conditions = "";
            this.AdvTKNguyenGia.DefaultValue = "";
            this.AdvTKNguyenGia.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTKNguyenGia.KeyFilter = "211|212|213|217";
            point = new Point(0x63, 0x13);
            this.AdvTKNguyenGia.Location = point;
            padding = new Padding(0);
            this.AdvTKNguyenGia.Margin = padding;
            this.AdvTKNguyenGia.Name = "AdvTKNguyenGia";
            this.AdvTKNguyenGia.OnlyDigit = false;
            this.AdvTKNguyenGia.ReadOnly = false;
            size = new Size(0x137, 20);
            this.AdvTKNguyenGia.Size = size;
            this.AdvTKNguyenGia.TabIndex = 1;
            this.AdvTKNguyenGia.UpperText = true;
            this.AdvTKNguyenGia.Value = "";
            this.AdvTKNguyenGia.WithCode = 80;
            this.AdvSanPham.LoaiDanhMuc = ADVList.ListDanhMuc.SanPham;
            point = new Point(0x63, 0x73);
            this.AdvSanPham.Location = point;
            this.AdvSanPham.Name = "AdvSanPham";
            this.AdvSanPham.ReadOnly = false;
            size = new Size(0x137, 20);
            this.AdvSanPham.Size = size;
            this.AdvSanPham.TabIndex = 9;
            this.AdvSanPham.UpperText = true;
            this.AdvSanPham.Value = "";
            this.AdvSanPham.WidthCode = 80;
            this.Label30.AutoEllipsis = true;
            this.Label30.AutoSize = true;
            point = new Point(8, 0x77);
            this.Label30.Location = point;
            this.Label30.Name = "Label30";
            this.Label30.RightToLeft = RightToLeft.No;
            size = new Size(0x37, 13);
            this.Label30.Size = size;
            this.Label30.TabIndex = 8;
            this.Label30.Text = "Sản phẩm";
            this.Label30.TextAlign = ContentAlignment.TopRight;
            this.AdvBoPhan.LoaiDanhMuc = ADVList.ListDanhMuc.BoPhan;
            point = new Point(0x63, 0x5b);
            this.AdvBoPhan.Location = point;
            this.AdvBoPhan.Name = "AdvBoPhan";
            this.AdvBoPhan.ReadOnly = false;
            size = new Size(0x137, 20);
            this.AdvBoPhan.Size = size;
            this.AdvBoPhan.TabIndex = 7;
            this.AdvBoPhan.UpperText = true;
            this.AdvBoPhan.Value = "";
            this.AdvBoPhan.WidthCode = 80;
            this.Label29.AutoEllipsis = true;
            this.Label29.AutoSize = true;
            point = new Point(8, 0x5e);
            this.Label29.Location = point;
            this.Label29.Name = "Label29";
            this.Label29.RightToLeft = RightToLeft.No;
            size = new Size(0x2f, 13);
            this.Label29.Size = size;
            this.Label29.TabIndex = 6;
            this.Label29.Text = "Bộ phận";
            this.Label29.TextAlign = ContentAlignment.TopRight;
            this.Label28.AutoEllipsis = true;
            this.Label28.AutoSize = true;
            point = new Point(8, 70);
            this.Label28.Location = point;
            this.Label28.Name = "Label28";
            this.Label28.RightToLeft = RightToLeft.No;
            size = new Size(0x3a, 13);
            this.Label28.Size = size;
            this.Label28.TabIndex = 4;
            this.Label28.Text = "TK Chi ph\x00ed";
            this.Label28.TextAlign = ContentAlignment.TopRight;
            this.Label27.AutoEllipsis = true;
            this.Label27.AutoSize = true;
            point = new Point(8, 0x2e);
            this.Label27.Location = point;
            this.Label27.Name = "Label27";
            this.Label27.RightToLeft = RightToLeft.No;
            size = new Size(0x45, 13);
            this.Label27.Size = size;
            this.Label27.TabIndex = 2;
            this.Label27.Text = "TK khấu hao";
            this.Label27.TextAlign = ContentAlignment.TopRight;
            this.Label24.AutoEllipsis = true;
            this.Label24.AutoSize = true;
            point = new Point(8, 0x16);
            this.Label24.Location = point;
            this.Label24.Name = "Label24";
            this.Label24.RightToLeft = RightToLeft.No;
            size = new Size(0x4c, 13);
            this.Label24.Size = size;
            this.Label24.TabIndex = 0;
            this.Label24.Text = "TK nguy\x00ean gi\x00e1";
            this.Label24.TextAlign = ContentAlignment.TopRight;
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.Label26);
            this.GroupBox2.Controls.Add(this.TxtThangBatDau);
            this.GroupBox2.Controls.Add(this.TxtTriGiaKhauHao);
            this.GroupBox2.Controls.Add(this.Label25);
            this.GroupBox2.Controls.Add(this.TxtThoiGianSuDung);
            this.GroupBox2.Controls.Add(this.Label23);
            this.GroupBox2.Controls.Add(this.TxtTriGiaConLai);
            this.GroupBox2.Controls.Add(this.Label22);
            this.GroupBox2.Controls.Add(this.TxtDaKhauHao);
            this.GroupBox2.Controls.Add(this.Label21);
            this.GroupBox2.Controls.Add(this.TxtNguyenGia);
            this.GroupBox2.Controls.Add(this.Label20);
            this.GroupBox2.Controls.Add(this.CboLoaiTien);
            this.GroupBox2.Controls.Add(this.txtTyGia);
            this.GroupBox2.Controls.Add(this.Label18);
            this.GroupBox2.Controls.Add(this.Label19);
            this.GroupBox2.Controls.Add(this.TxtNguyenGiaNT);
            this.GroupBox2.Controls.Add(this.Label17);
            point = new Point(3, 0xdd);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x1f8, 0x8e);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 1;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Nguy\x00ean gi\x00e1 - trị gi\x00e1 khấu hao";
            this.Label26.AutoSize = true;
            point = new Point(3, 120);
            this.Label26.Location = point;
            this.Label26.Name = "Label26";
            size = new Size(0x83, 13);
            this.Label26.Size = size;
            this.Label26.TabIndex = 0x10;
            this.Label26.Text = "Th\x00e1ng bắt đầu t\x00ednh K.hao";
            point = new Point(0xa7, 0x74);
            this.TxtThangBatDau.Location = point;
            this.TxtThangBatDau.Mask = "##/####";
            this.TxtThangBatDau.Name = "TxtThangBatDau";
            size = new Size(0x53, 20);
            this.TxtThangBatDau.Size = size;
            this.TxtThangBatDau.TabIndex = 0x11;
            this.TxtTriGiaKhauHao.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTriGiaKhauHao.DataType = typeof(double);
            this.TxtTriGiaKhauHao.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x173, 0x60);
            this.TxtTriGiaKhauHao.Location = point;
            this.TxtTriGiaKhauHao.Name = "TxtTriGiaKhauHao";
            padding = new Padding(1);
            this.TxtTriGiaKhauHao.Padding = padding;
            this.TxtTriGiaKhauHao.ReadOnly = true;
            size = new Size(0x6f, 20);
            this.TxtTriGiaKhauHao.Size = size;
            this.TxtTriGiaKhauHao.TabIndex = 15;
            this.TxtTriGiaKhauHao.Tag = null;
            this.TxtTriGiaKhauHao.TextAlign = HorizontalAlignment.Right;
            this.TxtTriGiaKhauHao.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTriGiaKhauHao.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTriGiaKhauHao.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label25.AutoSize = true;
            point = new Point(0x113, 100);
            this.Label25.Location = point;
            this.Label25.Name = "Label25";
            size = new Size(0x55, 13);
            this.Label25.Size = size;
            this.Label25.TabIndex = 14;
            this.Label25.Text = "Khấu hao/th\x00e1ng";
            this.TxtThoiGianSuDung.BorderStyle = BorderStyle.FixedSingle;
            this.TxtThoiGianSuDung.DataType = typeof(int);
            this.TxtThoiGianSuDung.FormatType = FormatTypeEnum.Integer;
            point = new Point(0xa7, 0x5c);
            this.TxtThoiGianSuDung.Location = point;
            this.TxtThoiGianSuDung.Name = "TxtThoiGianSuDung";
            padding = new Padding(1);
            this.TxtThoiGianSuDung.Padding = padding;
            size = new Size(0x53, 20);
            this.TxtThoiGianSuDung.Size = size;
            this.TxtThoiGianSuDung.TabIndex = 13;
            this.TxtThoiGianSuDung.Tag = null;
            this.TxtThoiGianSuDung.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtThoiGianSuDung.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtThoiGianSuDung.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label23.AutoSize = true;
            point = new Point(2, 0x5f);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            size = new Size(0x80, 13);
            this.Label23.Size = size;
            this.Label23.TabIndex = 12;
            this.Label23.Text = "Thời gian sử dụng (th\x00e1ng)";
            this.TxtTriGiaConLai.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTriGiaConLai.DataType = typeof(double);
            this.TxtTriGiaConLai.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x173, 0x47);
            this.TxtTriGiaConLai.Location = point;
            this.TxtTriGiaConLai.Name = "TxtTriGiaConLai";
            padding = new Padding(1);
            this.TxtTriGiaConLai.Padding = padding;
            this.TxtTriGiaConLai.ReadOnly = true;
            size = new Size(0x6f, 20);
            this.TxtTriGiaConLai.Size = size;
            this.TxtTriGiaConLai.TabIndex = 11;
            this.TxtTriGiaConLai.Tag = null;
            this.TxtTriGiaConLai.TextAlign = HorizontalAlignment.Right;
            this.TxtTriGiaConLai.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTriGiaConLai.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTriGiaConLai.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label22.AutoSize = true;
            point = new Point(0x113, 0x4a);
            this.Label22.Location = point;
            this.Label22.Name = "Label22";
            size = new Size(0x44, 13);
            this.Label22.Size = size;
            this.Label22.TabIndex = 10;
            this.Label22.Text = "Gi\x00e1 trị c\x00f2n lại";
            this.TxtDaKhauHao.BorderStyle = BorderStyle.FixedSingle;
            this.TxtDaKhauHao.DataType = typeof(double);
            this.TxtDaKhauHao.FormatType = FormatTypeEnum.CustomFormat;
            point = new Point(0x7b, 0x43);
            this.TxtDaKhauHao.Location = point;
            this.TxtDaKhauHao.Name = "TxtDaKhauHao";
            padding = new Padding(1);
            this.TxtDaKhauHao.Padding = padding;
            size = new Size(0x7f, 20);
            this.TxtDaKhauHao.Size = size;
            this.TxtDaKhauHao.TabIndex = 9;
            this.TxtDaKhauHao.Tag = null;
            this.TxtDaKhauHao.TextAlign = HorizontalAlignment.Right;
            this.TxtDaKhauHao.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtDaKhauHao.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtDaKhauHao.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label21.AutoSize = true;
            point = new Point(4, 0x47);
            this.Label21.Location = point;
            this.Label21.Name = "Label21";
            size = new Size(0x45, 13);
            this.Label21.Size = size;
            this.Label21.TabIndex = 8;
            this.Label21.Text = "Đ\x00e3 khấu hao";
            this.TxtNguyenGia.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNguyenGia.DataType = typeof(double);
            this.TxtNguyenGia.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x173, 0x2f);
            this.TxtNguyenGia.Location = point;
            this.TxtNguyenGia.Name = "TxtNguyenGia";
            padding = new Padding(1);
            this.TxtNguyenGia.Padding = padding;
            this.TxtNguyenGia.ReadOnly = true;
            size = new Size(0x6f, 20);
            this.TxtNguyenGia.Size = size;
            this.TxtNguyenGia.TabIndex = 7;
            this.TxtNguyenGia.Tag = null;
            this.TxtNguyenGia.TextAlign = HorizontalAlignment.Right;
            this.TxtNguyenGia.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtNguyenGia.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtNguyenGia.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label20.AutoSize = true;
            point = new Point(0x113, 0x33);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(0x2c, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 6;
            this.Label20.Text = "Quy đổi";
            this.CboLoaiTien.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiTien.FormattingEnabled = true;
            point = new Point(0x7b, 0x12);
            this.CboLoaiTien.Location = point;
            this.CboLoaiTien.Name = "CboLoaiTien";
            size = new Size(0x7f, 0x15);
            this.CboLoaiTien.Size = size;
            this.CboLoaiTien.TabIndex = 1;
            this.ImageList1.ImageStream = (ImageListStreamer) manager.GetObject("ImageList1.ImageStream");
            this.ImageList1.TransparentColor = Color.Transparent;
            this.ImageList1.Images.SetKeyName(0, "orders_main.png");
            this.ImageList1.Images.SetKeyName(1, "checkingacct.png");
            this.ImageList1.Images.SetKeyName(2, "billing.png");
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdGhiSo.Image = (Image) manager.GetObject("CmdGhiSo.Image");
            this.CmdGhiSo.ImageTransparentColor = Color.White;
            this.CmdGhiSo.Name = "CmdGhiSo";
            size = new Size(0x74, 0x16);
            this.CmdGhiSo.Size = size;
            this.CmdGhiSo.Text = "Ghi Tăng T\x00e0i Sản";
            this.CmdGhiSo.Visible = false;
            this.ToolStripButton2.Alignment = ToolStripItemAlignment.Right;
            this.ToolStripButton2.Image = (Image) manager.GetObject("ToolStripButton2.Image");
            this.ToolStripButton2.ImageScaling = ToolStripItemImageScaling.None;
            this.ToolStripButton2.ImageTransparentColor = Color.White;
            this.ToolStripButton2.Name = "ToolStripButton2";
            size = new Size(0x35, 0x16);
            this.ToolStripButton2.Size = size;
            this.ToolStripButton2.Text = "&Help";
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdGhiSo, this.ToolStripButton2 });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x3c6, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 1;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.PNDungChung.BackColor = Color.Transparent;
            this.PNDungChung.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.PNDungChung.Controls.Add(this.CmdChuyen);
            this.PNDungChung.Controls.Add(this.CboLoaiDuLieu);
            point = new Point(0x259, 0x19);
            this.PNDungChung.Location = point;
            this.PNDungChung.Name = "PNDungChung";
            size = new Size(0x117, 0x17);
            this.PNDungChung.Size = size;
            this.PNDungChung.TabIndex = 0xb6;
            this.PNDungChung.Visible = false;
            this.CmdChuyen.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0xfd, 0);
            this.CmdChuyen.Location = point;
            this.CmdChuyen.Name = "CmdChuyen";
            size = new Size(0x18, 0x17);
            this.CmdChuyen.Size = size;
            this.CmdChuyen.TabIndex = 14;
            this.CmdChuyen.Text = ">";
            this.CmdChuyen.UseVisualStyleBackColor = true;
            this.CmdChuyen.Visible = false;
            this.CboLoaiDuLieu.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiDuLieu.FormattingEnabled = true;
            point = new Point(90, 1);
            this.CboLoaiDuLieu.Location = point;
            this.CboLoaiDuLieu.Name = "CboLoaiDuLieu";
            size = new Size(0xa3, 0x15);
            this.CboLoaiDuLieu.Size = size;
            this.CboLoaiDuLieu.TabIndex = 13;
            this.CboLoaiDuLieu.Visible = false;
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Dock = DockStyle.Fill;
            point = new Point(0, 0x19);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            size = new Size(0x3c6, 0x220);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 0xb7;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.CmdRemoveImage);
            this.C1DockingTabPage1.Controls.Add(this.browseImageButton);
            this.C1DockingTabPage1.Controls.Add(this.ImgPicture);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox4);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox1);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox3);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox2);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x3c4, 0x206);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Th\x00f4ng tin t\x00e0i sản cố định";
            point = new Point(0x36e, 12);
            this.CmdRemoveImage.Location = point;
            this.CmdRemoveImage.Name = "CmdRemoveImage";
            size = new Size(70, 0x17);
            this.CmdRemoveImage.Size = size;
            this.CmdRemoveImage.TabIndex = 0x4e;
            this.CmdRemoveImage.Text = "Gỡ h\x00ecnh";
            point = new Point(0x321, 12);
            this.browseImageButton.Location = point;
            this.browseImageButton.Name = "browseImageButton";
            size = new Size(70, 0x17);
            this.browseImageButton.Size = size;
            this.browseImageButton.TabIndex = 0x4d;
            this.browseImageButton.Text = "Ch\x00e8n h\x00ecnh";
            this.ImgPicture.BorderStyle = BorderStyle.FixedSingle;
            point = new Point(0x31b, 0x29);
            this.ImgPicture.Location = point;
            this.ImgPicture.Name = "ImgPicture";
            size = new Size(0xa2, 170);
            this.ImgPicture.Size = size;
            this.ImgPicture.SizeMode = PictureBoxSizeMode.StretchImage;
            this.ImgPicture.TabIndex = 0x4f;
            this.ImgPicture.TabStop = false;
            this.browseImageOpenFileDialog.FileName = "OpenFileDialog1";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x3c6, 0x239);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.PNDungChung);
            this.Controls.Add(this.C1DockingTab1);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_TaiSan";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "NV-0012             ";
            this.Text = "TAI SAN CO DINH";
            ((ISupportInitialize) this.txtTyGia).EndInit();
            ((ISupportInitialize) this.TxtNguyenGiaNT).EndInit();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.TxtBaoHanh.EndInit();
            this.TxtNamSanXuat.EndInit();
            this.GroupBox4.ResumeLayout(false);
            this.VSlist.EndInit();
            this.GroupBox3.ResumeLayout(false);
            this.GroupBox3.PerformLayout();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            ((ISupportInitialize) this.TxtTriGiaKhauHao).EndInit();
            ((ISupportInitialize) this.TxtThoiGianSuDung).EndInit();
            ((ISupportInitialize) this.TxtTriGiaConLai).EndInit();
            ((ISupportInitialize) this.TxtDaKhauHao).EndInit();
            ((ISupportInitialize) this.TxtNguyenGia).EndInit();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.PNDungChung.ResumeLayout(false);
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            ((ISupportInitialize) this.ImgPicture).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadData()
        {
            this.cFrmData = new DataView(this.objTSCD.ShowAllList());
            if (this.cFrmData != null)
            {
                this.VSlist.DataSource = this.cFrmData;
                this.VSlist.Cols[0].Visible = false;
                this.VSlist.Cols[1].Width = 80;
                this.VSlist[0, 1] = modGeneral.Tranlated("M\x00e3", "");
                this.VSlist[0, 2] = modGeneral.Tranlated("T\x00ean (Tiếng Việt)", "");
                BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
                BuildComboModule.BuildCombo(this.CboLyDoTang, modGeneral.ListDanhMuc.LyDoTangTaiSan, false, "", "");
                if (this.VSlist.Rows.Count > 1)
                {
                    this.cFrmKhoa = Conversions.ToString(this.VSlist[1, 0]);
                    this.ShowData(this.cFrmKhoa);
                }
                if (this.cFrmKhoa.Trim() != "")
                {
                    this.ShowData(this.cFrmKhoa);
                }
                this.ShowData(this.cFrmKhoa);
            }
        }

        public void LoaddataPT()
        {
            this.VSlist.Rows.Count = 1;
            DataTable list = this.objDMTTTSCD.GetList(this.cFrmKhoa);
            if ((list != null) && (list.Rows.Count != 0))
            {
                int num2 = list.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                    vSlist.AddItem("");
                    vSlist[vSlist.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(list.Rows[i]["Khoa"]);
                    vSlist[vSlist.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(list.Rows[i]["KhoaPhuTung"]);
                    vSlist[vSlist.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(list.Rows[i]["MaPhuTung"]);
                    vSlist[vSlist.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(list.Rows[i]["PhuTung"]);
                    vSlist[vSlist.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(list.Rows[i]["DonViTinh"]);
                    vSlist[vSlist.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(list.Rows[i]["SoLuong"]);
                    vSlist[vSlist.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(list.Rows[i]["DonGia"]);
                    vSlist[vSlist.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(list.Rows[i]["ThanhTien"]);
                    vSlist = null;
                }
            }
        }

        public bool SaveDetails()
        {
            bool flag=false;
            clsDMThongTinTaiSanCoDinh objDMTTTSCD = this.objDMTTTSCD;
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.VSlist[i, 0] = modGeneral.CreatKey("FA_ChiTietPhuTungTaiSan", 10, "");
                }
                objDMTTTSCD.Khoa = Conversions.ToString(this.VSlist[i, 0]);
                objDMTTTSCD.KhoaPhuTung = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objDMTTTSCD.KhoaTaiSan = this.cFrmKhoa;
                objDMTTTSCD.SoLuong = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 5]), 0, modGeneral.TypeOfValue.Nothing));
                objDMTTTSCD.DonGia = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 6]), 0, modGeneral.TypeOfValue.Nothing));
                objDMTTTSCD.ThanhTien = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 7]), 0, modGeneral.TypeOfValue.Nothing));
                objDMTTTSCD.DienGiai = "";
                objDMTTTSCD.Save("");
            }
            objDMTTTSCD = null;
            return flag;
        }

        public void ShowData(string pKhoa)
        {
            if (LVYModule.ReturnIfNull(pKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                clsTaiSanCoDinh objTSCD = this.objTSCD;
                if (objTSCD.Load(pKhoa))
                {
                    this.cFrmKhoa = objTSCD.Khoa;
                    this.TxtMa.Text = objTSCD.Ma.Trim();
                    this.TxtTenViet.Text = objTSCD.TenViet.Trim();
                    this.TxtTenAnh.Text = objTSCD.TenAnh.Trim();
                    this.TxtMoTa.Text = objTSCD.DienGiai.Trim();
                    this.TxtBaoHanh.Value = new decimal(objTSCD.ThoiGianBaoHanh);
                    this.TxtDaKhauHao.Value = objTSCD.DaKhauHaoBanDau;
                    this.CboDonViTinh.SelectedValue = objTSCD.KhoaDonViTinh;
                    this.CboLoaiTien.SelectedValue = objTSCD.LoaiTien;
                    this.TxtNamSanXuat.Value = new decimal(objTSCD.NamSanXuat);
                    this.TxtNguyenGia.Value = objTSCD.NguyenGia.ToString();
                    this.TxtNguyenGiaNT.Value = objTSCD.NguyenGiaNT;
                    this.TxtThoiGianSuDung.Value = objTSCD.ThoiGianSuDung;
                    this.TxtTriGiaConLai.Value = objTSCD.GiaTriConLaiBanDau;
                    this.TxtTriGiaKhauHao.Value = objTSCD.TriGiaKhauHao;
                    this.txtTyGia.Value = objTSCD.TyGia.ToString();
                    this.CboLoaiTaiSan.SelectedValue = objTSCD.KhoaLoaiTaiSan;
                    this.TxtSoHieuTS.Text = objTSCD.SoHieuTaiSan;
                    this.CboDonViTinh.SelectedValue = objTSCD.KhoaDonViTinh;
                    this.CboHangSanXuat.SelectedValue = objTSCD.KhoaHangSanXuat;
                    this.CboNuocSanXuat.SelectedValue = objTSCD.KhoaNuocSanXuat;
                    this.CboTinhTrang.SelectedValue = objTSCD.TinhTrang;
                    this.CboLyDoTang.SelectedValue = objTSCD.LyDoTang;
                    this.AdvBoPhan.Value = objTSCD.KhoaBoPhan;
                    this.AdvBoPhanSuDung.Value = objTSCD.KhoaBoPhanSuDung;
                    this.AdvDiemDatTaiSan.Value = objTSCD.KhoaDiemDat;
                    this.AdvNhaCungCap.Value = objTSCD.KhoaNhaCungCap;
                    this.AdvNhanVienSuDung.Value = objTSCD.KhoaNhanVienSuDung;
                    this.AdvSanPham.Value = objTSCD.KhoaSanPham;
                    this.AdvTKChiPhi.Value = objTSCD.KhoaTKChiPhi;
                    this.AdvTKKhauHao.Value = objTSCD.KhoaTKKhauHao;
                    this.AdvTKNguyenGia.Value = objTSCD.KhoaTKNguyenGia;
                    this.TxtThangBatDau.Text = LVYModule.sRight(objTSCD.NamThangTinhKhauHao, 2) + "/" + LVYModule.sLeft(objTSCD.NamThangTinhKhauHao, 4);
                    this.TxtNgayMua.Text = LVYModule.Char2Date(objTSCD.NgayMua);
                    this.CboLoaiDuLieu.SelectedValue = objTSCD.DuLieu;
                    if (objTSCD.Img != null)
                    {
                        MemoryStream stream = new MemoryStream(objTSCD.Img);
                        PictureBox imgPicture = this.ImgPicture;
                        imgPicture.Image = Image.FromStream(stream);
                        imgPicture.SizeMode = PictureBoxSizeMode.StretchImage;
                        imgPicture = null;
                    }
                    objTSCD = null;
                    this.LoaddataPT();
                }
            }
        }

        public void tinhdongia(int nRow)
        {
            double num = 0.0;
            double num2 = 0.0;
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 5]), 0, modGeneral.TypeOfValue.Nothing));
            num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 7]), 0, modGeneral.TypeOfValue.Nothing));
            if (num > 0.0)
            {
                this.VSlist[nRow, 6] = Math.Round((double) (num2 / num), 0);
            }
            else
            {
                this.VSlist[nRow, 6] = 0;
            }
        }

        public void TinhKhauHao()
        {
            int num2 = 0;
            double num = 0.0;
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtNguyenGia.Value), 0, modGeneral.TypeOfValue.Nothing));
            num2 = (int) Math.Round(Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtThoiGianSuDung.Value), 0, modGeneral.TypeOfValue.Nothing)));
            if (num2 != 0)
            {
                this.TxtTriGiaKhauHao.Value = Math.Round((double) (num / ((double) num2)), 0);
            }
        }

        public void TinhTien(int nRow)
        {
            double num2 = 0.0;
            double num = 0.0;
            num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 5]), 0, modGeneral.TypeOfValue.Nothing));
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 6]), 0, modGeneral.TypeOfValue.Nothing));
            this.VSlist[nRow, 7] = num2 * num;
        }

        public void TinhTriGiaConLai()
        {
            double num = 0.0;
            double num2 = 0.0;
            num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtNguyenGia.Value), 0, modGeneral.TypeOfValue.Nothing));
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtDaKhauHao.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.TxtTriGiaConLai.Value = num2 - num;
        }

        public void TotalOfVoucher()
        {
            double num = LVYModule.SumColGrid(this.VSlist, 8) + LVYModule.SumColGrid(this.VSlist, 0x16);
            double num2 = LVYModule.SumColGrid(this.VSlist, 9) + LVYModule.SumColGrid(this.VSlist, 0x17);
            this.TxtNguyenGiaNT.Value = num;
            this.txtTyGia.Value = num2;
        }

        private void TxtDaKhauHao_LostFocus(object sender, EventArgs e)
        {
            if (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtDaKhauHao.Value), 0, modGeneral.TypeOfValue.Nothing)) > Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtNguyenGia.Value), 0, modGeneral.TypeOfValue.Nothing)))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Trị gi\x00e1 đ\x00e3 khấu hao phải nhỏ hơn nguy\x00ean gi\x00e1!", ""));
                this.TxtDaKhauHao.Focus();
            }
            this.TinhTriGiaConLai();
            this.TinhKhauHao();
        }

        private void TxtMa_KeyPress(object sender, KeyPressEventArgs e)
        {
            e.KeyChar = Conversions.ToChar(e.KeyChar.ToString().ToUpper());
        }

        private void TxtNguyenGiaNT_LostFocus(object sender, EventArgs e)
        {
            double num = 0.0;
            double num2 = 0.0;
            num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.txtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing));
            num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtNguyenGiaNT.Value), 0, modGeneral.TypeOfValue.Nothing));
            this.TxtNguyenGia.Value = num * num2;
            this.TinhTriGiaConLai();
            this.TinhKhauHao();
        }

        private void TxtThoiGianSuDung_LostFocus(object sender, EventArgs e)
        {
            this.TinhKhauHao();
        }

        public void VerifyGrid(string pTask)
        {
            if (pTask.Trim().ToUpper() == "U")
            {
                this.VSlist[this.VSlist.Row, 1] = this.TxtMa.Text.Trim();
                if (modGeneral.H_LANGUAGE.ToUpper().Trim() == "VIET")
                {
                    this.VSlist[this.VSlist.Row, 2] = this.TxtTenViet.Text.Trim();
                }
                else
                {
                    this.VSlist[this.VSlist.Row, 2] = this.TxtTenAnh.Text.Trim();
                }
            }
            else
            {
                this.VSlist.AddItem("");
                this.VSlist[this.VSlist.Row, 0] = this.cFrmKhoa;
                this.VSlist[this.VSlist.Row, 1] = this.TxtMa.Text.Trim();
                if (modGeneral.H_LANGUAGE.ToUpper().Trim() == "ANH")
                {
                    this.VSlist[this.VSlist.Row, 2] = this.TxtTenViet.Text.Trim();
                }
                else
                {
                    this.VSlist[this.VSlist.Row, 2] = this.TxtTenAnh.Text.Trim();
                }
            }
        }

        private void VSlist_AfterEdit(object sender, RowColEventArgs e)
        {
            switch (e.Col)
            {
                case 5:
                case 6:
                    this.TinhTien(e.Row);
                    break;

                case 7:
                    this.tinhdongia(e.Row);
                    break;
            }
        }

        private void VSlist_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (!this.mEnableControl)
            {
                e.Cancel = true;
            }
            else if ((e.Col > 2) & (e.Col < 5))
            {
                e.Cancel = true;
            }
        }

        private void VSlist_CellButtonClick(object sender, RowColEventArgs e)
        {
            string expression = "";
            clsDM_PhuTungTaiSan san = new clsDM_PhuTungTaiSan();
            clsDMDonViTinh tinh = new clsDMDonViTinh();
            if (e.Col == 2)
            {
                expression = SearchModule.SearchPhuTungTaiSan("");
                if (expression.Trim() != "")
                {
                    object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                    this.VSlist[e.Row, 1] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                    this.VSlist[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 1 }, null));
                    this.VSlist[e.Row, 3] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 2 }, null));
                    san.Load(Conversions.ToString(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null)));
                    tinh.Load(san.KhoaDonViTinh);
                    if (modGeneral.H_LANGUAGE.Trim().ToUpper() == "VIET")
                    {
                        this.VSlist[e.Row, 4] = tinh.TenViet;
                    }
                    else
                    {
                        this.VSlist[e.Row, 4] = tinh.TenAnh;
                    }
                }
            }
        }

        private void VSList_RowColChange(object sender, EventArgs e)
        {
            if ((this.bLoaded && (this.VSlist.Rows.Count != 1)) && (this.VSlist.Row > 0))
            {
                this.ShowData(this.VSlist[this.VSlist.Row, 0].ToString());
                this.cFrmKhoa = this.VSlist[this.VSlist.Row, 0].ToString();
            }
        }

        internal virtual ADVList AdvBoPhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvBoPhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvBoPhan = value;
            }
        }

        internal virtual ADVList AdvBoPhanSuDung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvBoPhanSuDung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvBoPhanSuDung = value;
            }
        }

        internal virtual ADVList AdvDiemDatTaiSan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvDiemDatTaiSan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvDiemDatTaiSan = value;
            }
        }

        internal virtual ADVObjects AdvNhaCungCap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhaCungCap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhaCungCap = value;
            }
        }

        internal virtual ADVObjects AdvNhanVienSuDung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVienSuDung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.AdvNhanVienSuDung_Load);
                if (this._AdvNhanVienSuDung != null)
                {
                    this._AdvNhanVienSuDung.Load -= handler;
                }
                this._AdvNhanVienSuDung = value;
                if (this._AdvNhanVienSuDung != null)
                {
                    this._AdvNhanVienSuDung.Load += handler;
                }
            }
        }

        internal virtual ADVList AdvSanPham
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvSanPham;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvSanPham = value;
            }
        }

        internal virtual ADVAccount AdvTKChiPhi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKChiPhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKChiPhi = value;
            }
        }

        internal virtual ADVAccount AdvTKKhauHao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKKhauHao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKKhauHao = value;
            }
        }

        internal virtual ADVAccount AdvTKNguyenGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTKNguyenGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTKNguyenGia = value;
            }
        }

        internal virtual Button browseImageButton
        {
            [DebuggerNonUserCode]
            get
            {
                return this._browseImageButton;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.browseImageButton_Click);
                if (this._browseImageButton != null)
                {
                    this._browseImageButton.Click -= handler;
                }
                this._browseImageButton = value;
                if (this._browseImageButton != null)
                {
                    this._browseImageButton.Click += handler;
                }
            }
        }

        internal virtual OpenFileDialog browseImageOpenFileDialog
        {
            [DebuggerNonUserCode]
            get
            {
                return this._browseImageOpenFileDialog;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._browseImageOpenFileDialog = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual ComboBox CboDonViTinh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonViTinh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonViTinh = value;
            }
        }

        internal virtual ComboBox CboHangSanXuat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboHangSanXuat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboHangSanXuat = value;
            }
        }

        internal virtual ComboBox CboLoaiDuLieu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiDuLieu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiDuLieu = value;
            }
        }

        internal virtual ComboBox CboLoaiTaiSan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTaiSan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiTaiSan = value;
            }
        }

        internal virtual ComboBox CboLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLoaiTien_SelectedIndexChanged);
                if (this._CboLoaiTien != null)
                {
                    this._CboLoaiTien.SelectedIndexChanged -= handler;
                }
                this._CboLoaiTien = value;
                if (this._CboLoaiTien != null)
                {
                    this._CboLoaiTien.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboLyDoTang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLyDoTang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLyDoTang = value;
            }
        }

        internal virtual ComboBox CboNuocSanXuat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboNuocSanXuat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboNuocSanXuat = value;
            }
        }

        internal virtual ComboBox CboTinhTrang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTinhTrang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboTinhTrang = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRow_Click);
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click -= handler;
                }
                this._CmdAddRow = value;
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click += handler;
                }
            }
        }

        internal virtual Button CmdChuyen
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdChuyen;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdChuyen = value;
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelRow_Click);
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click -= handler;
                }
                this._CmdDelRow = value;
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdFind_Click);
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click -= handler;
                }
                this._CmdFind = value;
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdGhiSo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdGhiSo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdGhiSo_Click);
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click -= handler;
                }
                this._CmdGhiSo = value;
                if (this._CmdGhiSo != null)
                {
                    this._CmdGhiSo.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual Button CmdRemoveImage
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRemoveImage;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdRemoveImage_Click);
                if (this._CmdRemoveImage != null)
                {
                    this._CmdRemoveImage.Click -= handler;
                }
                this._CmdRemoveImage = value;
                if (this._CmdRemoveImage != null)
                {
                    this._CmdRemoveImage.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnableControl
        {
            get
            {
                return this.mEnableControl;
            }
            set
            {
                this.mEnableControl = value;
                this.CmdAdd.Enabled = !value & this.mAllowAdd;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value & this.mAllowDel;
                this.TxtMa.ReadOnly = !value;
                this.TxtTenViet.ReadOnly = !value;
                this.TxtTenAnh.ReadOnly = !value;
                this.TxtSoHieuTS.ReadOnly = !value;
                this.CboLoaiTaiSan.Enabled = value;
                this.CboNuocSanXuat.Enabled = value;
                this.AdvDiemDatTaiSan.ReadOnly = !value;
                this.AdvNhaCungCap.ReadOnly = !value;
                this.CboHangSanXuat.Enabled = value;
                this.CmdRemoveImage.Enabled = value;
                this.browseImageButton.Enabled = value;
                this.AdvNhanVienSuDung.ReadOnly = !value;
                this.TxtNamSanXuat.ReadOnly = !value;
                this.TxtBaoHanh.ReadOnly = !value;
                this.TxtMoTa.ReadOnly = !value;
                this.TxtNgayMua.Enabled = value;
                this.AdvBoPhanSuDung.ReadOnly = !value;
                this.CboTinhTrang.Enabled = value;
                this.CboDonViTinh.Enabled = value;
                this.CboLyDoTang.Enabled = value;
                this.AdvTKNguyenGia.ReadOnly = !value;
                this.AdvTKKhauHao.ReadOnly = !value;
                this.AdvTKChiPhi.ReadOnly = !value;
                this.AdvBoPhan.ReadOnly = !value;
                this.AdvSanPham.ReadOnly = !value;
                this.CboLoaiTien.Enabled = value;
                this.txtTyGia.ReadOnly = !value;
                this.TxtNguyenGiaNT.ReadOnly = !value;
                this.TxtNguyenGia.ReadOnly = !value;
                this.TxtDaKhauHao.ReadOnly = !value;
                this.TxtTriGiaConLai.ReadOnly = !value;
                this.TxtThoiGianSuDung.ReadOnly = !value;
                this.TxtTriGiaKhauHao.ReadOnly = !value;
                this.TxtThangBatDau.Enabled = value;
                this.CmdAdd.Enabled = !value & this.mAllowEdit;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value;
                this.CmdAddRow.Enabled = !value;
                this.CmdDelRow.Enabled = !value;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.CmdExit.Enabled = !value;
                this.CmdFind.Enabled = !value;
                this.CmdGhiSo.Enabled = !value;
                this.ToolStripButton2.Enabled = !value;
                this.CboLoaiDuLieu.Enabled = value;
                this.CmdChuyen.Enabled = !value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.GroupBox2_Enter);
                if (this._GroupBox2 != null)
                {
                    this._GroupBox2.Enter -= handler;
                }
                this._GroupBox2 = value;
                if (this._GroupBox2 != null)
                {
                    this._GroupBox2.Enter += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox3 = value;
            }
        }

        internal virtual GroupBox GroupBox4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox4 = value;
            }
        }

        internal virtual ImageList ImageList1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ImageList1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ImageList1 = value;
            }
        }

        internal virtual PictureBox ImgPicture
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ImgPicture;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ImgPicture = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label12 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label15
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label15;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label15 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label17
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label17;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label17 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label21
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label21;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label21 = value;
            }
        }

        internal virtual Label Label22
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label22;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label22 = value;
            }
        }

        internal virtual Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual Label Label24
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label24;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label24 = value;
            }
        }

        internal virtual Label Label25
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label25;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label25 = value;
            }
        }

        internal virtual Label Label26
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label26;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label26 = value;
            }
        }

        internal virtual Label Label27
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label27;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label27 = value;
            }
        }

        internal virtual Label Label28
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label28;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label28 = value;
            }
        }

        internal virtual Label Label29
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label29;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label29 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label30
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label30;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label30 = value;
            }
        }

        internal virtual Label Label31
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label31;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label31 = value;
            }
        }

        internal virtual Label Label32
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label32;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label32 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual Panel PNDungChung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PNDungChung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._PNDungChung = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripButton ToolStripButton2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual NumericUpDown TxtBaoHanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtBaoHanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtBaoHanh = value;
            }
        }

        internal virtual C1NumericEdit TxtDaKhauHao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDaKhauHao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtDaKhauHao_LostFocus);
                if (this._TxtDaKhauHao != null)
                {
                    this._TxtDaKhauHao.LostFocus -= handler;
                }
                this._TxtDaKhauHao = value;
                if (this._TxtDaKhauHao != null)
                {
                    this._TxtDaKhauHao.LostFocus += handler;
                }
            }
        }

        internal virtual TextBox TxtMa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                System.Windows.Forms.KeyPressEventHandler handler = new System.Windows.Forms.KeyPressEventHandler(this.TxtMa_KeyPress);
                if (this._TxtMa != null)
                {
                    this._TxtMa.KeyPress -= handler;
                }
                this._TxtMa = value;
                if (this._TxtMa != null)
                {
                    this._TxtMa.KeyPress += handler;
                }
            }
        }

        internal virtual TextBox TxtMoTa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMoTa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtMoTa = value;
            }
        }

        internal virtual NumericUpDown TxtNamSanXuat
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNamSanXuat;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNamSanXuat = value;
            }
        }

        internal virtual DateTimePicker TxtNgayMua
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayMua;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayMua = value;
            }
        }

        internal virtual C1NumericEdit TxtNguyenGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNguyenGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNguyenGia = value;
            }
        }

        internal virtual C1NumericEdit TxtNguyenGiaNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNguyenGiaNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtNguyenGiaNT_LostFocus);
                if (this._TxtNguyenGiaNT != null)
                {
                    this._TxtNguyenGiaNT.LostFocus -= handler;
                }
                this._TxtNguyenGiaNT = value;
                if (this._TxtNguyenGiaNT != null)
                {
                    this._TxtNguyenGiaNT.LostFocus += handler;
                }
            }
        }

        internal virtual TextBox TxtSoHieuTS
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoHieuTS;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoHieuTS = value;
            }
        }

        internal virtual TextBox TxtTenAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenAnh = value;
            }
        }

        internal virtual TextBox TxtTenViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenViet = value;
            }
        }

        internal virtual MaskedTextBox TxtThangBatDau
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtThangBatDau;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtThangBatDau = value;
            }
        }

        internal virtual C1NumericEdit TxtThoiGianSuDung
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtThoiGianSuDung;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtThoiGianSuDung_LostFocus);
                if (this._TxtThoiGianSuDung != null)
                {
                    this._TxtThoiGianSuDung.LostFocus -= handler;
                }
                this._TxtThoiGianSuDung = value;
                if (this._TxtThoiGianSuDung != null)
                {
                    this._TxtThoiGianSuDung.LostFocus += handler;
                }
            }
        }

        internal virtual C1NumericEdit TxtTriGiaConLai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTriGiaConLai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTriGiaConLai = value;
            }
        }

        internal virtual C1NumericEdit TxtTriGiaKhauHao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTriGiaKhauHao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTriGiaKhauHao = value;
            }
        }

        internal virtual C1NumericEdit txtTyGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtTyGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtTyGia = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSlist_AfterEdit);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSlist_CellButtonClick);
                RowColEventHandler handler3 = new RowColEventHandler(this.VSlist_BeforeEdit);
                EventHandler handler4 = new EventHandler(this.VSList_RowColChange);
                if (this._VSlist != null)
                {
                    this._VSlist.AfterEdit -= handler;
                    this._VSlist.CellButtonClick -= handler2;
                    this._VSlist.BeforeEdit -= handler3;
                    this._VSlist.RowColChange -= handler4;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.AfterEdit += handler;
                    this._VSlist.CellButtonClick += handler2;
                    this._VSlist.BeforeEdit += handler3;
                    this._VSlist.RowColChange += handler4;
                }
            }
        }
    }
}

